package com.study.行为型模式.策略模式.改进;

public class ToyDuck extends Duck {


    public ToyDuck() {
        flyStrategy = new NoFlyStrategy();
    }

    @Override
    public void display() {
        System.out.println("这是野生鸭");
    }
}
